<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/14
 * Time: 10:56
 */

namespace app\admin\model;


class UserCharge extends BaseModel
{
    /**
     * 反向关联用户表，获取在此订单里的用户信息
     */
    public function user()
    {
        return $this->belongsTo('User', 'user_id', 'id');
    }
}